#include <AcceleroMMA7361.h>

AcceleroMMA7361 accelero;
int x;
int y;
int z;

void setup()
{
  Serial.begin(9600);
  accelero.begin(13, 12, 11, A0, A1, A2);
  accelero.callibrate();
  accelero.setARefVoltage(3.3); //sets the AREF voltage to 3.3V
}

void loop()
{
  x = accelero.getXVolt();
  y = accelero.getYVolt();
  z = accelero.getZVolt();
  Serial.print("\nx: ");
  Serial.print(x);  
  Serial.print("mV\ty: ");
  Serial.print(y);  
  Serial.print("mV\tz: ");
  Serial.print(z);
  Serial.print("mV");
  delay(100);
}
